Exchange Shell -  Changing users attributes
In exchange 2007 I want to change the street and city attributes for a group of users. All these users are in an OU, so i am trying to use power shell to do this. The command i would use would be: get-user -organizationalunit "OU Name" | set-user -streetaddress "street name" -city "city name" I am going to run this on the exchange shell, but will the above command work for a group of users to change their street name.
March 31st, 2011 6:01am

On Thu, 31 Mar 2011 09:53:50 +0000, GuvN wrote: >In exchange 2007 I want to change the street and city attributes for a group of users. All these users are in an OU, so i am trying to use power shell to do this. The command i would use would be: > >get-user -organizationalunit "OU Name" | set-user -streetaddress "street name" -city "city name" > >I am going to run this on the exchange shell, but will the above command work for a group of users to change their street name. It looks correct. Why not add "-whatif:$true" to the "set-user" and give it a try? --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
March 31st, 2011 10:14pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics